﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Entities
{
    // Entity SanPham map with SanPham Table
    public class SanPham
    {
       // properties
        private int maSP;
        private int maNSX;
        private String tenSP;
        private String image1;
        private String image2;
        private String image3;
        private Decimal donGia;
        private int soLuong;
        private int soLuongDaBan;
        private DateTime ngaySX;
        private DateTime ngayCapNhat;
        private int soLanXem;


        // getters and setters
        public int MaSP
        {
            get { return maSP; }
            set { maSP = value; }
        }
        

        public int MaNSX
        {
            get { return maNSX; }
            set { maNSX = value; }
        }
       

        public String TenSP
        {
            get { return tenSP; }
            set { tenSP = value; }
        }
        

        public String Image1
        {
            get { return image1; }
            set { image1 = value; }
        }
       

        public String Image2
        {
            get { return image2; }
            set { image2 = value; }
        }
        

        public String Image3
        {
            get { return image3; }
            set { image3 = value; }
        }
        

        public Decimal DonGia
        {
            get { return donGia; }
            set { donGia = value; }
        }
       

        public int SoLuong
        {
            get { return soLuong; }
            set { soLuong = value; }
        }
        

        public int SoLuongDaBan1
        {
            get { return soLuongDaBan; }
            set { soLuongDaBan = value; }
        }
        




        public DateTime NgaySX
        {
            get { return ngaySX; }
            set { ngaySX = value; }
        }
        
       

        public int SoLuongDaBan
        {
            get { return soLuongDaBan; }
            set { soLuongDaBan = value; }
        }

        public int SoLanXem
        {
            get { return soLanXem; }
            set { soLanXem = value; }
        }


        // Constructors

        public SanPham()
        {

        }

        public SanPham( int maSP, int maNSX, String tenSP, String image1,
            String image2, String image3, Decimal donGia, int soLuong,
            int soLuongDaBan, DateTime ngaySX, DateTime ngayCapNhat,
            int soLanXem)
        {
            this.maSP = maSP;
            this.MaNSX = maNSX;
            this.tenSP = tenSP;
            this.image1 = image1;
            this.image2 = image2;
            this.image3 = image3;
            this.donGia = donGia;
            this.soLuong = soLuong;
            this.soLuongDaBan = soLuongDaBan;
            this.ngaySX = ngaySX;
            this.ngayCapNhat = ngayCapNhat;
            this.soLanXem = soLanXem;
        }

       

        

       
        

        

    }
}
